<template>
  <div class="box w-p-100 flx-col-s-c">
    <div class="title f-16 c-d2">190品牌经纪人</div>
    <div class="list-area w-p-100 flx-row-s-s">
      <div class="flx-col-c-c item-area" v-for="(item, index) in list" :key="index" :class="{'m-r': (index + 1) % 5 != 0}">
        <div class="flx-col-s-c inner">
          <div class="image" v-lazy:background-image=""></div>
          <span class="c-o f-14">阿庆</span>
          <div class="tel">Tel：18926545841</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [1,2,3,4,5]
    }
  }
}
</script>

<style lang="scss" scoped>
.box {
  background-color: #fff;
  border: 1px solid #eaeaea;
  margin-bottom: 15px;
  padding: 20px 100px 50px;

  .title {
    line-height: 45px;
    border-bottom: 2px solid #F9521F;
  }
  .list-area {
    flex-wrap: wrap;
  }
  .image {
    @include size(126px);
    @include bg-setting(null, cover, center);
    background-color: #ededed;
    margin-bottom: 14px;
    flex-shrink: 0;
  }
  .tel {
    @include size(100%, 28px);
    line-height: 28px;
    font-size: 12px;
    background-color: #F9521F;
    color: #fff;
    margin-top: 5px;
    border-radius: 4px;
    text-align: center;
  }
  .item-area {
    @include size(150px, 213px);
    margin-top: 30px;
    .inner {
      padding: 10px;
      height: 170px;
      overflow: hidden;
      transition: height .3s, box-shadow .3s;

      &:hover {
        height: 213px;
        box-shadow: 0 2px 12px 0 rgba(#000, 0.1);
      }
    }
  }
  .m-r {
    margin-right: 62px;
  }
}
</style>